<?php

use App\Http\Controllers\Rent\Business\BaseController;
use App\Http\Controllers\Rent\HomeController;
use App\Http\Controllers\Rent\CategoryController;
use Illuminate\Support\Facades\Route;

Route::prefix('business')->group(function(){
    Route::post('base/register',[BaseController::class,'register']);
    Route::post('base/login',[BaseController::class,'login']);
    
});

Route::prefix('business')->middleware('Auth')->group(function(){
    Route::post('base/index',[BaseController::class,'index']);
    Route::post('base/send',[BaseController::class,'send']);
    Route::post('base/check',[BaseController::class,'check']);
    Route::post('base/profile',[BaseController::class,'profile']);
});

Route::post('home/index',[HomeController::class,'index']);

Route::prefix('category')->group(function(){
    Route::post('hot',[CategoryController::class,'hot']);
    Route::post('index',[CategoryController::class,'index']);
    Route::post('info',[CategoryController::class,'info']);
});



